
$('#signinb').click(function(){
	sendAjaxRequest(
					loginURL,
					{
						username:$('#username').val(),
						password:$('#password').val()
					},
					function(response){
						console.log(response);
						if(response.code == 100) {
							window.location.replace("./participate_in_survey.html");
						}
						
						if(response.code == -100) {
							alert(response.message);
						}
					},
					function(){alert('Failure');},
					function(){alert('Error');}
	);
});